//
//  ViewController.m
//  XXXXX
//
//  Created by point on 2018/1/15.
//  Copyright © 2018年 whiteboard. All rights reserved.
//

#import "ViewController.h"
#import "DCViewController.h"
#import "DCTool.h"
@interface ViewController ()

//@property(nonatomic,weak) DCViewController *vc;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [[DCTool shareCamera]haha];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)clickBtn:(UIButton *)sender {
   
    //NSLog(@"%@", [DCTool shareCamera].two.zhao);
   
//    //情况一: 不会
   
     DCViewController *vc = [[DCViewController alloc] init];
    //NSLog(@"%@",vc);
    //self.vc.presentVC = self;
    [self presentViewController: vc animated:true completion:nil];
    //[DCTool shareCamera].two = nil;
    
    // 情况二: self strong     vc strong   肯定会
//    DCViewController *vc = [[DCViewController alloc]init];
//    //vc.presentVC = self;
//    self.vc = vc;
//    [self presentViewController:self.vc animated:true completion:nil];
    
    
    
//   // 情况三: self strong     vc weak   还是会
//    DCViewController *vc = [[DCViewController alloc]init];
//    self.vc = vc;
//    [self presentViewController:vc animated:true completion:nil];
    
    
//     //情况三: self weak     vc strong   还是会
//        DCViewController *vc = [[DCViewController alloc]init];
//        self.vc = vc;
//        [self presentViewController:vc animated:true completion:nil];
    
    
    //情况四: self weak     vc weak   看看 执行方法问题
//    DCViewController *vc = [[DCViewController alloc]init];
//    self.vc = vc;
//    [self.vc myLog];
//    [self presentViewController:vc animated:true completion:nil];
//    [self.vc myLog];

    
    
    
    
    //DCViewController *vc = [[DCViewController alloc]init];
    //[self presentViewController:vc animated:true completion:nil];
    //vc.presentVC = self;
    //self.vc = vc;
    //self.vc.presentVC = self;
    //[self presentViewController:vc animated:true completion:nil];
   
    
    //self.vc = vc;
    //self.vc.presentVC = self;
    //[self presentViewController:vc animated:true completion:nil];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
